<?php
/**
 * Created by PhpStorm.
 * User: venki
 * Date: 2023/12/16
 * Time: 16:00
 */

namespace app\modelFilter;

class BookAFilter extends QueryFilter
{
    public function title($title)
    {
        return $this->builder->where('title', 'like', "%{$title}%");
    }

    public function price($price)
    {
        return $this->builder->where('price', '>=', "%{$price}%");
    }

    public function publisher($publisher)
    {
        return $this->builder->where('publisher', $publisher);
    }
}